export type ResolveType = (value: any) => any;

export type RejectType = (value: any) => any;

export type Executor = (resolve: ResolveType, reject: RejectType) => any;

// Promise的3种状态
export enum Status {
    PENDING = "pending",
    FULLFILLED = "fullfilled",
    REJECTED = "rejected",
}

// 通用函数类型
export type Fn = (...args: any[]) => any;
